Personal tools

Lua/Events/Server/ClientModuleLoad

From JC2-MP Documentation

< Lua
Jump to: navigation, search
Name    ClientModuleLoad
Arguments (in table)    Player player
Return option    None


Description

Fired when player is finished loading the client-side scripts of the module, either when they join or when the module is loaded/reloaded. Note that the module must actually have a client-side script for this event to fire at all.

You may want to wait until this is called before sending network messages to a player.

Examples

function Foo(args)
	print(args.player:GetName().."'s client-side scripts have been loaded")
end
 
Events:Subscribe("ClientModuleLoad", Foo)